# Maintainer: Thore Bödecker <foxxx0@archlinux.org>
# Contributor: Chris Down <chris@chrisdown.name>

pkgname=clipnotify
pkgver=1.0.2
pkgrel=2
pkgdesc='Polling-free clipboard notifier'
url='https://github.com/cdown/clipnotify'
arch=('loong64' 'x86_64')
license=('custom:Public Domain')
depends=('libx11' 'libxfixes')

source=("${pkgname}-${pkgver}.tar.gz::https://github.com/cdown/clipnotify/archive/${pkgver}.tar.gz")
sha512sums=('52277099d9543e0f550de63ff2e15e3e7ba63ea38f3928006e2b570bb1bcdd3f2f09892bd4efecc1f36fb5131e0567c28c2b0597123c90b9f78ab6fbd02dfc49')

prepare() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    true
}

build() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    make
}

package() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    install -Dm755 clipnotify "${pkgdir}/usr/bin/clipnotify"
    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
